/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.manufacture.data;

import com.mes.data.EmesColor;
import com.mes.data.EmesComponent;
import com.mes.data.EmesFont;
import com.mes.data.EmesPBomItem;

import java.util.Date;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Emeso_Job_Plan_Diy (stored in table Emeso_Job_Plan_Diy).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesoJobPlanDiy extends BaseOBObject implements Traceable, ClientEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emeso_Job_Plan_Diy";
    public static final String ENTITY_NAME = "Emeso_Job_Plan_Diy";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORG = "org";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_EMESOJOBPLAN = "emesoJobPlan";
    public static final String PROPERTY_EMESPBOMITEM = "emesPbomItem";
    public static final String PROPERTY_EMESCOMPONENT = "emesComponent";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_FONTCODE = "fontCode";
    public static final String PROPERTY_EMESFONT = "emesFont";
    public static final String PROPERTY_FONTCOLOR = "fontColor";
    public static final String PROPERTY_EMESCOLOR = "emesColor";
    public static final String PROPERTY_FONTTEXT = "fontText";
    public static final String PROPERTY_URLPATH = "urlPath";
    public static final String PROPERTY_POSITION = "position";
    public static final String PROPERTY_DESCRIPTION = "description";

    public EmesoJobPlanDiy() {
        setDefaultValue(PROPERTY_ACTIVE, true);
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Organization getOrg() {
        return (Organization) get(PROPERTY_ORG);
    }

    public void setOrg(Organization org) {
        set(PROPERTY_ORG, org);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public EmesoJobPlan getEmesoJobPlan() {
        return (EmesoJobPlan) get(PROPERTY_EMESOJOBPLAN);
    }

    public void setEmesoJobPlan(EmesoJobPlan emesoJobPlan) {
        set(PROPERTY_EMESOJOBPLAN, emesoJobPlan);
    }

    public EmesPBomItem getEmesPbomItem() {
        return (EmesPBomItem) get(PROPERTY_EMESPBOMITEM);
    }

    public void setEmesPbomItem(EmesPBomItem emesPbomItem) {
        set(PROPERTY_EMESPBOMITEM, emesPbomItem);
    }

    public EmesComponent getEmesComponent() {
        return (EmesComponent) get(PROPERTY_EMESCOMPONENT);
    }

    public void setEmesComponent(EmesComponent emesComponent) {
        set(PROPERTY_EMESCOMPONENT, emesComponent);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public String getFontCode() {
        return (String) get(PROPERTY_FONTCODE);
    }

    public void setFontCode(String fontCode) {
        set(PROPERTY_FONTCODE, fontCode);
    }

    public EmesFont getEmesFont() {
        return (EmesFont) get(PROPERTY_EMESFONT);
    }

    public void setEmesFont(EmesFont emesFont) {
        set(PROPERTY_EMESFONT, emesFont);
    }

    public String getFontColor() {
        return (String) get(PROPERTY_FONTCOLOR);
    }

    public void setFontColor(String fontColor) {
        set(PROPERTY_FONTCOLOR, fontColor);
    }

    public EmesColor getEmesColor() {
        return (EmesColor) get(PROPERTY_EMESCOLOR);
    }

    public void setEmesColor(EmesColor emesColor) {
        set(PROPERTY_EMESCOLOR, emesColor);
    }

    public String getFontText() {
        return (String) get(PROPERTY_FONTTEXT);
    }

    public void setFontText(String fontText) {
        set(PROPERTY_FONTTEXT, fontText);
    }

    public String getUrlPath() {
        return (String) get(PROPERTY_URLPATH);
    }

    public void setUrlPath(String urlPath) {
        set(PROPERTY_URLPATH, urlPath);
    }

    public String getPosition() {
        return (String) get(PROPERTY_POSITION);
    }

    public void setPosition(String position) {
        set(PROPERTY_POSITION, position);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

}
